import type { FilterItem } from '@/components/FilterBar/types'
import { ref } from 'vue'

export const goodsRegStoreOptions = ref<Array<FilterItem>>([
  {
    label: '物品名称',
    prop: 'goodsName',
    type: 'input',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品名称'
    }
  },
  {
    label: '物品编号',
    prop: 'goodsCode',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品编号'
    }
  },
  {
    label: '捡拾地',
    prop: 'pickUpPlace',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入捡拾地'
    }
  },
  {
    label: '捡拾时间',
    prop: 'startTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  },
  {
    label: '存放位置',
    prop: 'storePosition',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      clearable: true,
      placeholder: '请选择存放位置',
      options: [
      ]
    }
  },
  {
    label: '存放航站楼',
    prop: 'storeTerminal',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      clearable: true,
      placeholder: '请选择存放航站楼',
      options: [
      ]
    }
  },
  {
    label: '已存放时长',
    prop: 'storeTime',
    type: 'checkbox',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      showCheckAll: false,
      options: [
        { label: '1天', value: '1' },
        { label: '7天', value: '7' }
      ]
    }
  },
  {
    label: '物品类型',
    prop: 'goodsType',
    type: 'select',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择物品类型',
      options: [
        // { label: '全部', value: 'all' }
      ]
    }
  },
])
export const applyStoreOptions = ref<Array<FilterItem>>([
  {
    label: '物品名称',
    prop: 'goodsName',
    type: 'input',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品名称'
    }
  },
  {
    label: '物品编号',
    prop: 'goodsCode',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品编号'
    }
  },
  {
    label: '捡拾地',
    prop: 'pickUpPlace',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入捡拾地'
    }
  },
  {
    label: '捡拾时间',
    prop: 'startTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  },
  {
    label: '存放航站楼',
    prop: 'storeTerminal',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      clearable: true,
      placeholder: '请选择存放航站楼',
      options: [
      ]
    }
  },
  {
    label: '已存放时长',
    prop: 'storeTime',
    type: 'checkbox',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      showCheckAll: true,
      options: [
        { label: '1天', value: '1' },
        { label: '7天', value: '7' }
      ]
    }
  },
  {
    label: '物品类型',
    prop: 'goodsType',
    type: 'select',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择物品类型',
      options: [
        // { label: '全部', value: 'all' }
      ]
    }
  },
])

export const goodsRegReturnOptions = ref<Array<FilterItem>>([
  {
    label: '物品名称',
    prop: 'goodsName',
    type: 'input',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品名称'
    }
  },
  {
    label: '物品编号',
    prop: 'goodsCode',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入物品编号'
    }
  },
  {
    label: '捡拾地',
    prop: 'pickUpPlace',
    type: 'input',
    inputProps: {
      clearable: true,
      placeholder: '请输入捡拾地'
    }
  },
  {
    label: '领取时间',
    prop: 'startTime',
    type: 'datePicker',
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD'
    }
  },
  {
    label: '存放位置',
    prop: 'storePosition',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      showCheckAll: false,
      options: [
      ]
    }
  },
  {
    label: '存放航站楼',
    prop: 'storeTerminal',
    type: 'select',
    defaultValue: [],
    inputProps: {
      // 控制是否显示权限功能
      showCheckAll: false,
      options: [
      ]
    }
  },
  {
    label: '物品类型',
    prop: 'goodsType',
    type: 'select',
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请选择物品类型',
      options: [
        // { label: '全部', value: 'all' }
      ]
    }
  },
])
